Hi, I followed the nestjs setup guide and when I w...
# support-questions-legacy
j
Hi, I followed the nestjs setup guide and when I went to auth/dashboard it showed a server error. Nest app shows this error: SuperTokens core threw an error for a GET request to path: '/apiversion' with status code: 401 and message: Invalid API key. The connection uri and api key in nest are the ones provided in the managed service, I don't know what could be wrong.
r
hey @JuanJo
can you try the connectionURI as
https://try.supertokens.com
and see if that works?
j
yes it works
r
Have you added the
apiKey
config when using the managed service connectionURI?
j
yes
also tried creating new api key and it does not work
I made sure the api key and connection uri are well written
r
hmm. This is unusual. Can you trying querying the /hello path from your browser? What do you get?
j
it works
r
Oh right. I see. So you need to find the place where supertokens.init is being called. And in there, you will see the connectionURI being used inside supertokens.init({supertokens:{…}})
You need to add the api key in there along side where the connection uri is being used
25 Views